import { DocContent } from "@/components/mdx/docs";

export const metadata = {
  title: "Connect to Turso using LibSQL Studio - The Best GUI Client for Turso",
};

<DocContent title="Connect to Turso" group="Connecting">

LibSQL Studio is an excellent GUI for working with the Turso database. Here is
a step-by-step guide on how to connect your Turso database using LibSQL
Studio.

## Generate Token

To connect to the Turso database, you need to generate a database token. Follow these steps via the Turso dashboard:

1. Go to the Turso Database section.
2. Navigate to the Database menu.
3. Click on **"Get Token"** on the right side of the database you want to connect.
4. Click **"Generate Token"** and then copy the token.

## Connect

Open LibSQL Studio

1. Click **"New Connection"** and choose **"Turso"**.
2. Enter your database URL and the token you generated earlier.
3. Click **"Connect."**

</DocContent>
